package com.hong.concurrent.chapter7;

import java.util.stream.IntStream;

/**
 * @Author csh
 * @Description
 * @Date 2018/7/2 22:56
 */
public class ImmutanbleClient {

    public static void main(String[] args) {
        //share data
        Person person = new Person("Alex", "GuanSu");

        IntStream.range(0,5).forEach(i->
            new UsePersonThread(person).start()
        );
    }
}
